package com.example.mvc_test.controller;

import com.example.mvc_test.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author ljw
 * @description
 * @date 2021/9/16 8:02
 */
@Controller
public class NormalController {

    @Autowired
    private DemoService demoService;

    @RequestMapping("/normal")
    public String page(Model model) {
        model.addAttribute("msg", demoService.saySomething());
        return "page";
    }
}
